#pragma once

#include <atlbase.h> 
#include "atlwin.h"
#include "resource.h"
#include "atlstr.h"

class CCreatePrjDlg : public CDialogImpl<CCreatePrjDlg>
{
public:
	CCreatePrjDlg(LPCTSTR lpszInitDir);
	virtual ~CCreatePrjDlg(void);

public:
	enum { IDD = IDD_DIALOG_CREATE_PRJ};

	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnOKCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnBrowser(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);

	BEGIN_MSG_MAP(CCreatePrjDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_CLOSE, OnClose)
		COMMAND_ID_HANDLER(IDOK, OnOKCancel)
		COMMAND_ID_HANDLER(IDCANCEL, OnOKCancel)
		COMMAND_ID_HANDLER(IDC_BROWSER, OnBrowser)
	END_MSG_MAP()

private:
	CString m_strInitDir;
	CString m_sPathPrj;
	CString m_sProjectName;
	friend class CCreatePrjDlgImpl;
};
